package Book;

public class Book {
    private String nameOfBook;
    private String author;
    private String typeOfBook;
    private double price;
    private boolean isBorrow;

    public Book(String nameOfBook, String author, String typeOfBook, double price, boolean isBorrow) {
        this.nameOfBook = nameOfBook;
        this.author = author;
        this.typeOfBook = typeOfBook;
        this.price = price;
        this.isBorrow = isBorrow;
    }

    public String getNameOfBook() {
        return nameOfBook;
    }

    public void setNameOfBook(String nameOfBook) {
        this.nameOfBook = nameOfBook;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTypeOfBook() {
        return typeOfBook;
    }

    public void setTypeOfBook(String typeOfBook) {
        this.typeOfBook = typeOfBook;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public boolean isBorrow() {
        return isBorrow;
    }

    public void setBorrow(boolean borrow) {
        isBorrow = borrow;
    }

    @Override
    public String toString() {
        return "Book{" +
                "nameOfBook='" + nameOfBook + '\'' +
                ", author='" + author + '\'' +
                ", typeOfBook='" + typeOfBook + '\'' +
                ", price=" + price +
                ", isBorrow=" + isBorrow +
                '}';
    }
}
